package org.ruslan.kolobok.model;

import com.badlogic.gdx.math.Vector3;

public class AliveLevelObject<T extends Type> extends LevelObject<Type> {

	private Vector3 acceleration;
	private Vector3 velocity;
	private Vector3 direction;

	public AliveLevelObject(Type type) {
		super(type);
		acceleration = new Vector3();
		velocity = new Vector3();
		direction = new Vector3();
	}
	
//	public float getSpeed() {
//		return type.getSpeed();
//	}

	public void update(float deltaTime) {
		if (type instanceof AliveType) {
			((AliveType) type).getBehaviour().update(this, deltaTime);
		}
	}

	public Vector3 getAcceleration() {
		return acceleration;
	}

	// public void setAcceleration(Vector3 acceleration) {
	// this.acceleration = acceleration;
	// }

	public Vector3 getVelocity() {
		return velocity;
	}

	// public void setVelocity(Vector3 velocity) {
	// this.velocity = velocity;
	// }
}
